public class test4 {
    public static void main(String[] args) {
        PetDog dog =new PetDog();
        dog .name ="小黄";
        dog.age =1;
        dog.eat();
        System.out.println(dog.name);
        System.out.println(dog.age);
        System.out.println("=======");
        PetDog dog2 =new PetDog();
        dog2.name = "小白";
        dog2.age =1;
        System.out.println(dog2.name);
        System.out.println(dog2.age);
    }
}
class  PetDog{
    public String name;
    public String color;
    public int age;
    public void eat(){
        System.out.println(name+"吃狗粮");
    }
    public void barks(){
        System.out.println("汪汪");
    }
}